package jin.si.service.impl;

import jin.si.dao.JsActicleCategroyMapper;
import jin.si.pojo.JsActicleCategray;
import jin.si.pojo.JsMicrocircle;
import jin.si.service.JsActicleCategroyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * ClassName:JsActicleCategroyServiceImple
 * Package:jin.si.service.impl
 * Description:
 *
 * @Date:2022/3/22 下午 3:23
 * @Author: WYH
 */
@Service
public class JsActicleCategroyServiceImple implements JsActicleCategroyService {

    @Autowired(required = false)
    private JsActicleCategroyMapper jsActicleCategroyMapper;

    /**
     * @Author WYH
     * @Description //TODO
     * @Date 下午 3:07 2022/3/22
     * @Param
     * @return  List<JsMicrocircle>
     **/
    @Override
    public List<JsActicleCategray> getJsMicrocircle() {
        List<JsActicleCategray> jsMicrocircle = jsActicleCategroyMapper.getJsMicrocircle();
        return jsMicrocircle;
    }

    /**
     * @Author WYH
     * @Description //TODO 查看微圈分类对应的课程
     * @Date 上午 13:51 2022/3/28
     * @Param acticleCategoryId
     * @return   List<JsMicrocircle>
     **/
    @Override
    public List<JsMicrocircle> getJsMicrocircleById(String acticleCategoryId) {
        List<JsMicrocircle> jsMicrocircleById = jsActicleCategroyMapper.getJsMicrocircleById(acticleCategoryId);
        return jsMicrocircleById;
    }

    /**
     * @Author WYH
     * @Description //TODO 根据微圈id查询数据
     * @Date 下午 2:55 2022/3/29
     * @Param microcircleId
     * @return  JsMicrocircle
     **/
    @Override
    public JsMicrocircle selectJsMicrocircleById(String microcircleId){
        JsMicrocircle jsMicrocircle = jsActicleCategroyMapper.selectJsMicrocircleById(microcircleId);
        return jsMicrocircle;
    }
}
